<!doctype html>
<html>
<?php echo $this->fetch('head.html'); ?>

<body>
<div class="fullscreen" >
        <div class="scroll_content">
            <div class="topfixed">
                <div class="t_left"><a href="index.php"><i class="back"></i></a></div>
                <div class="t_main">今日特价</div>

            </div>
            <div class="paddingheight"></div>
            <div class="global_tabs_wrap">
                <ul class="global_tabs clearfix">
                    <li  class="first <?php if (get ( 't' ) == 0 || get ( 't' ) == 1): ?>cur<?php endif; ?>"><a href="/index.php?m=tejia&t=1">正在进行</a></li>
                    <li class="  <?php if (get ( 't' ) == 2): ?>cur<?php endif; ?>"><a href="/index.php?m=tejia&t=2">即将开始</a></li>
                    <li class="last <?php if (get ( 't' ) == 3): ?>cur<?php endif; ?>"><a href="/index.php?m=tejia&t=3">往期活动</a></li>
                </ul>
            </div>
            <div class="product_list" style="position:relative;">
                <ul class="list clearfix">
                	<?php $_from = $this->_var['data']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
                    <li>
                        <p><a href="/index.php?m=tejia&a=show&id=<?php echo $this->_var['c']['id']; ?>"><img src="<?php echo images_site($this->_var['c']['imgurl']); ?>.middle.jpg" class="img" onerror="err_imgurl(this,2)"></a></p>

                        <p class="tit"><?php echo $this->_var['c']['title']; ?></p>

                        <div class="num"><span class="fl"><del>￥<?php echo $this->_var['c']['market_price']; ?></del></span><span class="fr">限量<?php echo $this->_var['c']['total_num']; ?>份</span></div>
                        <div class="qiangbox clearfix">
                            <p class="f_left">
                                ￥<?php echo $this->_var['c']['price']; ?>

                            </p>

                            <p class="f_right">
                                <a href="/index.php?m=tejia_order&a=buy&id=<?php echo $this->_var['c']['id']; ?>"><span class="arr"></span><span class="txt"><?php if ($this->_var['c']['endtime'] < time ( )): ?>已结束<?php elseif ($this->_var['c']['starttime'] > time ( )): ?>即将开始<?php else: ?>马上抢<?php endif; ?></span></a>
                            </p>
                        </div>
                    </li>
					<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                     
                </ul>
            </div>
        </div>
    </div>
<?php echo $this->fetch('footer.html'); ?>
 <script src="<?php echo $this->_var['skins']; ?>js/jquery.blocksit.min.js"></script>
     <script>
	
	$(function () {
		
      //瀑布流
	  $('.product_list ul').BlocksIt({numOfCol: 2, offsetX: 2, offsetY: 2, blockElement: "li"});
	  setTimeout(function(){
		  $('.product_list ul').BlocksIt({numOfCol: 2, offsetX: 2, offsetY: 2, blockElement: "li"});
	  },1000);
	  
	});
	</script>     
</body>
</html>
